package com.ruoyi.supplier.mapper;

import java.util.List;
import com.ruoyi.supplier.domain.TbPurchaseDetail;

/**
 * 采购明细Mapper接口
 * 
 * @author ruoyi
 * @date 2021-03-05
 */
public interface TbPurchaseDetailMapper 
{
    /**
     * 查询采购明细
     * 
     * @param id 采购明细ID
     * @return 采购明细
     */
    public TbPurchaseDetail selectTbPurchaseDetailById(Long id);

    /**
     * 查询采购明细列表
     * 
     * @param tbPurchaseDetail 采购明细
     * @return 采购明细集合
     */
    public List<TbPurchaseDetail> selectTbPurchaseDetailList(TbPurchaseDetail tbPurchaseDetail);

    /**
     * 新增采购明细
     * 
     * @param tbPurchaseDetail 采购明细
     * @return 结果
     */
    public int insertTbPurchaseDetail(TbPurchaseDetail tbPurchaseDetail);

    /**
     * 修改采购明细
     * 
     * @param tbPurchaseDetail 采购明细
     * @return 结果
     */
    public int updateTbPurchaseDetail(TbPurchaseDetail tbPurchaseDetail);

    /**
     * 删除采购明细
     * 
     * @param id 采购明细ID
     * @return 结果
     */
    public int deleteTbPurchaseDetailById(Long id);

    /**
     * 批量删除采购明细
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTbPurchaseDetailByIds(Long[] ids);
}
